import request from '@/utils/request'

export function sysLogin (data) {
  return request({
    url: '/sys/login',
    method: 'post',
    // noToken: true,
    data
  })
}

// 封装获取用户信息接口
export function sysProfile () {
  return request({
    url: '/sys/profile',
    method: 'post'
    // headers: {
    //   Authorization: `Bearer ${store.state.user.token}`
    // }
  })
}

// 获取用户具体信息
export function sysUser (id) {
  return request({
    url: `/sys/user/${id}`
  })
}
